SpringBoot2.0+ 使用Log4j2日志輸出 據說Log4j2相比log4j效率有很大提升。 pom.xml導入 2.新建默認配置文件log4j2-spring.xml 內容如下 如果配置文件使用其它名字需在yml文件 ...